<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />  
    <title>派发红包</title>
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta name="author" content="飞啊飘啊">
	<meta name="hashcode" content="-1568361104">
	
	<script>window.duteTag="lz";</script>
	<script type="text/javascript" src="/manage/js/dute-1.0.js"></script>
	<script type="text/javascript" src="/manage/js/jquery-1.7.1.min.js"></script>

	<script type="text/javascript" src="/manage/js/lazy3q.ui.js"></script>
	<script>
		document.write('<link rel="stylesheet" type="text/css" href="/manage//css/'+($.cookie('theme')||'elegant')+'/lazy3q.ui.css" /> ');
	</script>
	
	<!-- 用户自定义js(懒加载) -->
	<script type="text/javascript" src="/manage/js/define.js"></script>
	<!-- 用户自定义css样式 -->
	<link rel="stylesheet" type="text/css" href="/manage/css/define.css"/>
	
	
	
	<script type="text/javascript">
		window.basePath="/";
		window.hashcode = "-1568361104";
	</script>
		
	<!-- 感谢kindeditor出品的在线HTML编辑控件 -->
	<script type="text/javascript" charset="utf-8" src="/manage/js/kindeditor/kindeditor.js"></script>
		
	<!-- 感谢My97DatePicker出品的时间控件 -->
	<script language="javascript" type="text/javascript" src="/manage/js/My97DatePicker/WdatePicker.js"></script>
	
	<!------------------------VIEW_HTML_HEAD------------------------>
	<!------------------------VIEW_HTML_HEAD------------------------>	
	
</head>
<script>
Page({
  data:{
    
  },
  onLoad: function(options) {
  	var THIS = this;
  	THIS.setData(options);
  	$.getAjax("redpacket.get.do",options,function(protocol){
  		if(protocol.message){
  			$.toast(protocol.message);
  		}
  		THIS.setData(protocol.data);
  		/******************VIEW_HTML_SET_DATA******************/
  		/******************VIEW_HTML_SET_DATA******************/
  	});
  }
});
</script>
<script>
window["lzFlashUrl"]=top.lzFlashUrl||"/admin/flash/";
window["uploadUrl"]=top.uploadUrl||"/admin/upload.do";

$(function(){
		 
	$("#redpacketForm").form({
		"":function(){}
		,"redPacket.id":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
			}
		}
		,"redPacket.redEnveloper":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
			}
		}
		,"redPacket.quantity":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
				if(jQuery.trim(el.value)=="")
					return "红包数量不能为空";
			}
				if(el.value.length>10)
					return "数字太大了";
					 var pattern = /^-?(0|[1-9][0-9]*)?$/;
					 if(!pattern.test(el.value))
						return "请输入正确格式的数字";			
		}
		,"redPacket.product":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
			}
		}
		,"redPacket.types":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
				if(jQuery.trim(el.value)=="")
					return "请选择红包类型";
			}
		}
		,"redPacket.validity":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
				if(jQuery.trim(el.value)=="")
					return "默认有效期不能为空";
			}
		}
		,"redPacket.recipients":function(el){
				if(el.value.length>10)
					return "数字太大了";
					 var pattern = /^-?(0|[1-9][0-9]*)?$/;
					 if(!pattern.test(el.value))
						return "请输入正确格式的数字";			
		}
		,"redPacket.unique":function(el){
			if(el.value.length>32 && el.value.indexOf("[*]")==-1)
				return "唯一标识最大长度为32个字符";
			if(jQuery.trim(el.value)!=""){
				var protocol = $.getAjax("/manage/query.RedPacket.do",{exists:true,unique:el.value});
				if(protocol.success && protocol.data.list && protocol.data.list.length>0){
					if(!$("#id").val() || protocol.data.list[0].key!=$("#id").val())
						return "唯一标识已存在";						
				}
			}
		}
		,"redPacket.updateTime":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
				if(jQuery.trim(el.value)=="")
					return "修改时间不能为空";
			}
		}
		,"redPacket.addTime":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
				if(jQuery.trim(el.value)=="")
					return "发放时间不能为空";
			}
		}
		,"redPacket.status":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
				if(jQuery.trim(el.value)=="")
					return "请选择状态";
			}
		}
		,"redPacket.merchant":function(el){
			if($(el).parents("dd:eq(0)").find("b:contains('*')").size()>0){
			}
		}
	},function(){
		/******************************LAZY3Q_FORM_VALIDATE******************************/
		/******************************LAZY3Q_FORM_VALIDATE******************************/
	});		
});
</script>

<body style="display:none;">



<!------------------------VIEW_HTML_TOP------------------------>
<!------------------------VIEW_HTML_TOP------------------------>



<form lz:if="{{edittype=='insert'||edittype=='update'||edittype=='detail'||edittype=='any'}}" class="form editform edittype_{{edittype}}" ref="RedPacket" id="redpacketForm" name="redpacketForm" target="jsoniframe" action="redpacket.{{edittype=='any'?'update':edittype}}.do" method="post">
	<div class="head"></div>
	<div class="body">
		<div class="content">
			<div lz:if="{{edittype!='detail'}}" class="prompt">
				温馨提示：请仔细填写派发红包相关信息，<span class="extrude">"*" 为必填选项。</span>
			</div>
			<br/>
			<lz:block lz:if="{{message}}">
			<br/>
			<center>
				<font color="red"><h4>{{message}}</h4></font>
			</center>
			<br/>
			</lz:block>
			<input type="hidden" value="{{complete}}" name="complete" id="complete" />
			<input type="hidden" value="{{ids}}" name="ids" id="ids" />
			<textarea name="PARAMS" id="PARAMS" style="display:none">{{PARAMS}}</textarea>
	{{lz.set("id_editable",(edittype=='insert'&&true)||(edittype=='update'&&true)||(edittype=='any'&&(lz.idin(fields,"id"))))}}
	{{lz.set("id_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$id}}
	<dl lz:if="{{id_editable||id_readonly}}" class="id hidden " major  ref="id">
		<dt>编　　号:</dt>
		<dd lz:if="{{id_editable}}" input="hidden">
			<lz:block lz:if="{{redPacket$id}}">
				{{redPacket$id}}
			</lz:block>
			<lz:block lz:if="{{!redPacket$id}}">
			<input type="hidden" value="{{lz.htm(redPacket.id)}}" name="redPacket.id" id="id" />
	 	 </lz:block>
	 	 
	 	 <em></em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{id_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="id">{{redPacket.id}}</textarea>
		 		<span>
		 	
			 {{lz.html(redPacket.id$||redPacket.id)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$id}}
	{{lz.set("redEnveloper_editable",(edittype=='insert'&&true)||(edittype=='update'&&true)||(edittype=='any'&&(lz.idin(fields,"redEnveloper"))))}}
	{{lz.set("redEnveloper_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$redEnveloper}}
	<dl lz:if="{{redEnveloper_editable||redEnveloper_readonly}}" class="redEnveloper  " major  ref="redEnveloper">
		<dt>发红包人:</dt>
		<dd lz:if="{{redEnveloper_editable}}" input="query">
			<lz:block lz:if="{{redPacket$redEnveloper}}">
				{{redPacket$redEnveloper}}
			</lz:block>
			<lz:block lz:if="{{!redPacket$redEnveloper}}">
		 			<input title="请输入会员信息昵称进行查询" class="combox narrow" action="/manage/query.Member.do?value={param}" type="text" id="redEnveloper" name="redPacket.redEnveloper" text="{{lz.html(redPacket.redEnveloper$||redPacket.redEnveloper)}}" value="{{lz.htm(redPacket.redEnveloper)}}" />
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em></em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{redEnveloper_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="redEnveloper">{{redPacket.redEnveloper}}</textarea>
		 		<span>
		 	
			 {{lz.html(redPacket.redEnveloper$||redPacket.redEnveloper)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$redEnveloper}}
	{{lz.set("uid_editable",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='any'&&(lz.idin(fields,"uid"))))}}
	{{lz.set("uid_readonly",(edittype=='insert'&&false)||(edittype=='update'&&true)||(edittype=='detail'))}}
	
	{{before$uid}}
	<dl lz:if="{{uid_editable||uid_readonly}}" class="uid hidden " major  ref="uid">
		<dt>用户编号:</dt>
		<dd lz:if="{{uid_editable}}" input="hidden">
			<lz:block lz:if="{{redPacket$uid}}">
				{{redPacket$uid}}
			</lz:block>
			<lz:block lz:if="{{!redPacket$uid}}">
			<input type="hidden" value="{{lz.htm(redPacket.uid)}}" name="redPacket.uid" id="uid" />
	 	 </lz:block>
	 	 
	 	 <em></em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{uid_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="uid">{{redPacket.uid}}</textarea>
		 		<span>
		 	
			 {{lz.html(redPacket.uid$||redPacket.uid)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$uid}}
	{{lz.set("quantity_editable",(edittype=='insert'&&true)||(edittype=='update'&&true)||(edittype=='any'&&(lz.idin(fields,"quantity"))))}}
	{{lz.set("quantity_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$quantity}}
	<dl lz:if="{{quantity_editable||quantity_readonly}}" class="quantity  " major  ref="quantity">
		<dt>红包数量:</dt>
		<dd lz:if="{{quantity_editable}}" input="number">
			<lz:block lz:if="{{redPacket$quantity}}">
				{{redPacket$quantity}}
			</lz:block>
			<lz:block lz:if="{{!redPacket$quantity}}">
			<input onkeyup="var reg=/^-?(([1-9]\d{0,9})|0)?/;this.value=this.value.match(reg)?this.value.match(reg)[0]:''" type="text" class="input narrow"  maxlength="8" name="redPacket.quantity" id="quantity"  value="{{lz.htm(redPacket.quantity)}}"/>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请输入派发红包的红包数量</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{quantity_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="quantity">{{redPacket.quantity}}</textarea>
		 		<span>
		 	
			 {{lz.html(redPacket.quantity$||redPacket.quantity)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$quantity}}
	{{lz.set("product_editable",(edittype=='insert'&&true)||(edittype=='update'&&true)||(edittype=='any'&&(lz.idin(fields,"product"))))}}
	{{lz.set("product_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$product}}
	<dl lz:if="{{product_editable||product_readonly}}" class="product  " major  ref="product">
		<dt>余额产品:</dt>
		<dd lz:if="{{product_editable}}" input="query">
			<lz:block lz:if="{{redPacket$product}}">
				{{redPacket$product}}
			</lz:block>
			<lz:block lz:if="{{!redPacket$product}}">
		 			<input title="请输入产品余额编号进行查询" class="combox narrow" action="/manage/query.Product.do?value={param}" type="text" id="product" name="redPacket.product" text="{{lz.html(redPacket.product$||redPacket.product)}}" value="{{lz.htm(redPacket.product)}}" />
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em></em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{product_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="product">{{redPacket.product}}</textarea>
		 		<span>
		 	
			 {{lz.html(redPacket.product$||redPacket.product)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$product}}
	{{lz.set("types_editable",(edittype=='insert'&&true)||(edittype=='update'&&true)||(edittype=='any'&&(lz.idin(fields,"types"))))}}
	{{lz.set("types_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$types}}
	<dl lz:if="{{types_editable||types_readonly}}" class="types  " major  ref="types">
		<dt>红包类型:</dt>
		<dd lz:if="{{types_editable}}" input="select">
			<lz:block lz:if="{{redPacket$types}}">
				{{redPacket$types}}
			</lz:block>
			<lz:block lz:if="{{!redPacket$types}}">
		 	<select class="narrow" id="types" name="redPacket.types">
		 		<option value="">请选择</option>
				<option value="1" selected='{{redPacket.types=="1"?"selected":""}}'>单人红包</option>
				<option value="2" selected='{{redPacket.types=="2"?"selected":""}}'>多人红包</option>
		 	</select>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请选择派发红包的红包类型</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{types_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="types">{{redPacket.types}}</textarea>
		 		<span>
		 	
			 {{lz.html(redPacket.types$||redPacket.types)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$types}}
	{{lz.set("validity_editable",(edittype=='insert'&&true)||(edittype=='update'&&true)||(edittype=='any'&&(lz.idin(fields,"validity"))))}}
	{{lz.set("validity_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$validity}}
	<dl lz:if="{{validity_editable||validity_readonly}}" class="validity  " major  ref="validity">
		<dt>默认有效期:</dt>
		<dd lz:if="{{validity_editable}}" input="datetime">
			<lz:block lz:if="{{redPacket$validity}}">
				{{redPacket$validity}}
			</lz:block>
			<lz:block lz:if="{{!redPacket$validity}}">
		 	<input onchange="void(0);" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" type="text" class="datetime input narrow" maxlength="19" name="redPacket.validity" id="validity"  value="{{redPacket.validity$}}"/>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请选择派发红包的默认有效期</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{validity_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="validity">{{redPacket.validity}}</textarea>
		 		<span>
		 	
			 {{lz.html(redPacket.validity$||redPacket.validity)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$validity}}
	{{lz.set("recipients_editable",(edittype=='insert'&&true)||(edittype=='update'&&true)||(edittype=='any'&&(lz.idin(fields,"recipients"))))}}
	{{lz.set("recipients_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$recipients}}
	<dl lz:if="{{recipients_editable||recipients_readonly}}" class="ribs recipients  " major  ref="recipients">
		<dt>已领取人数:</dt>
		<dd lz:if="{{recipients_editable}}" input="number">
			<lz:block lz:if="{{redPacket$recipients}}">
				{{redPacket$recipients}}
			</lz:block>
			<lz:block lz:if="{{!redPacket$recipients}}">
			<input onkeyup="var reg=/^-?(([1-9]\d{0,9})|0)?/;this.value=this.value.match(reg)?this.value.match(reg)[0]:''" type="text" class="input narrow"  maxlength="8" name="redPacket.recipients" id="recipients"  value="{{lz.htm(redPacket.recipients)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入派发红包的已领取人数</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{recipients_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="recipients">{{redPacket.recipients}}</textarea>
		 		<span>
		 	
			 {{lz.html(redPacket.recipients$||redPacket.recipients)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$recipients}}
	{{lz.set("unique_editable",(edittype=='insert'&&true)||(edittype=='update'&&true)||(edittype=='any'&&(lz.idin(fields,"unique"))))}}
	{{lz.set("unique_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$unique}}
	<dl lz:if="{{unique_editable||unique_readonly}}" class="ribs unique  " major  ref="unique">
		<dt>唯一标识:</dt>
		<dd lz:if="{{unique_editable}}" input="text">
			<lz:block lz:if="{{redPacket$unique}}">
				{{redPacket$unique}}
			</lz:block>
			<lz:block lz:if="{{!redPacket$unique}}">
		 	<input type="text" class="input narrow"  maxlength="32" name="redPacket.unique" id="unique"  value="{{lz.htm(redPacket.unique)}}"/>
	 	 </lz:block>
	 	 
	 	 <em>请输入派发红包的唯一标识</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{unique_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="unique">{{redPacket.unique}}</textarea>
		 		<span>
		 	
			 {{lz.html(redPacket.unique$||redPacket.unique)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$unique}}
	{{lz.set("updateTime_editable",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='any'&&(lz.idin(fields,"updateTime"))))}}
	{{lz.set("updateTime_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$updateTime}}
	<dl lz:if="{{updateTime_editable||updateTime_readonly}}" class="updateTime  " major  ref="updateTime">
		<dt>修改时间:</dt>
		<dd lz:if="{{updateTime_editable}}" input="datetime">
			<lz:block lz:if="{{redPacket$updateTime}}">
				{{redPacket$updateTime}}
			</lz:block>
			<lz:block lz:if="{{!redPacket$updateTime}}">
		 	<input onchange="void(0);" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" type="text" class="datetime input narrow" maxlength="19" name="redPacket.updateTime" id="updateTime"  value="{{redPacket.updateTime$}}"/>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请选择派发红包的修改时间</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{updateTime_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="updateTime">{{redPacket.updateTime}}</textarea>
		 		<span>
		 	
			 {{lz.html(redPacket.updateTime$||redPacket.updateTime)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$updateTime}}
	{{lz.set("addTime_editable",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='any'&&(lz.idin(fields,"addTime"))))}}
	{{lz.set("addTime_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$addTime}}
	<dl lz:if="{{addTime_editable||addTime_readonly}}" class="addTime  " major  ref="addTime">
		<dt>发放时间:</dt>
		<dd lz:if="{{addTime_editable}}" input="datetime">
			<lz:block lz:if="{{redPacket$addTime}}">
				{{redPacket$addTime}}
			</lz:block>
			<lz:block lz:if="{{!redPacket$addTime}}">
		 	<input onchange="void(0);" onClick="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm:ss'})" type="text" class="datetime input narrow" maxlength="19" name="redPacket.addTime" id="addTime"  value="{{redPacket.addTime$}}"/>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请选择派发红包的发放时间</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{addTime_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="addTime">{{redPacket.addTime}}</textarea>
		 		<span>
		 	
			 {{lz.html(redPacket.addTime$||redPacket.addTime)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$addTime}}
	{{lz.set("status_editable",(edittype=='insert'&&false)||(edittype=='update'&&true)||(edittype=='any'&&(lz.idin(fields,"status"))))}}
	{{lz.set("status_readonly",(edittype=='insert'&&false)||(edittype=='update'&&false)||(edittype=='detail'))}}
	
	{{before$status}}
	<dl lz:if="{{status_editable||status_readonly}}" class="status  " major  ref="status">
		<dt>状　　态:</dt>
		<dd lz:if="{{status_editable}}" input="select">
			<lz:block lz:if="{{redPacket$status}}">
				{{redPacket$status}}
			</lz:block>
			<lz:block lz:if="{{!redPacket$status}}">
		 	<select class="narrow" id="status" name="redPacket.status">
		 		<option value="">请选择</option>
				<option value="1" selected='{{redPacket.status=="1"?"selected":""}}'>有效中</option>
				<option value="0" selected='{{redPacket.status=="0"?"selected":""}}'>已失效</option>
		 	</select>
	 	 </lz:block>
	 	 <b>*</b>
	 	 <em>请选择派发红包的状态</em> 
	 	 <a class="mui-navigate-right"></a>
		</dd>
		<dd lz:if="{{status_readonly}}">
		 	<div class="state-input narrow">
		 		<textarea class=""  style="display:none;" id="status">{{redPacket.status}}</textarea>
		 		<span>
		 	
			 {{lz.html(redPacket.status$||redPacket.status)}}
	 	 		</span>
	 	 	</div>
		</dd>
	</dl>
	{{after$status}}
			
			
			<div class="line">
				<center lz:if="{{edittype=='insert'}}">
					<a onclick="$('.ribs').show();window.fireResize();$('.ribs-handle').toggle();" href="javascript:void(0);" class="state-content ribs-handle" style="display:inline;padding: 0px 15px;">点击展开更多编辑项</a>
					<a onclick="$('.ribs').hide();window.fireResize();$('.ribs-handle').toggle();" href="javascript:void(0);" class="state-content ribs-handle" style="display:none;padding: 0px 15px;">点击收起更多编辑项</a>
				</center>
			</div>
			<center class="buttons">
				<input type="hidden" value="{{redPacket.id}}" name="redPacket.id" id="id" />
			
			<lz:block lz:if="{{edittype=='insert'||edittype=='update'||edittype=='any'}}">
				<button class="button" type="submit">
					&nbsp;<img align="absmiddle" width="20" src="/admin/images/icons/Badge-tick.png"/>
					保存&nbsp;&nbsp;</button>
				<button title="不保存数据,关闭窗口,不刷新原列表" class="button" onclick="$.closeModalDialog();" type="button">
					&nbsp;<img align="absmiddle" width="20" src="/admin/images/icons/Badge-multiply.png"/>
					关闭&nbsp;&nbsp;</button>
			</lz:block>
			
			<lz:block lz:if="{{edittype=='detail'}}">
				<button title="不保存数据,关闭窗口,不刷新原列表" class="button" onclick="$.closeModalDialog();" type="button">
					&nbsp;<img align="absmiddle" width="20" src="/admin/images/icons/Badge-multiply.png"/>
					关闭&nbsp;&nbsp;</button>
			</lz:block>
					
			</center>
			<br/>

		</div>
	</div>
	<div class="foot"></div>		
</form>


 


<!------------------------VIEW_HTML_BOTTOM------------------------>
<!------------------------VIEW_HTML_BOTTOM------------------------>


</body>

<!------------------------VIEW_HTML_FOOTER------------------------>
<!------------------------VIEW_HTML_FOOTER------------------------>
<script>

</script>
</html>